home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000121_dbecker@cpicorp.com_Mon Dec 2 13:13:16 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  45 lines

  1. Article: 13902 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: dbecker@cpicorp.com (Derek Chen-Becker)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Differences when kermit executes a script vs. Interactive mode?
  6. Date: 2 Dec 2002 09:06:29 -0800
  7. Organization: http://groups.google.com/
  8. Lines: 27
  9. Message-ID: <9c21afd5.0212020906.6963e3e5@posting.google.com>
  10. NNTP-Posting-Host: 204.233.170.1
  11. Content-Type: text/plain; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Trace: posting.google.com 1038848790 12845 127.0.0.1 (2 Dec 2002 17:06:30 GMT)
  14. X-Complaints-To: groups-abuse@google.com
  15. NNTP-Posting-Date: 2 Dec 2002 17:06:30 GMT
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13902
  17.  
  18. Hi,
  19.     I've been looking through the newsgroups and "Using C-Kermit" for
  20. help with an issue I'm having. I am writing a file transfer script
  21. that I would like to execute out of a scheduler, but I've run into the
  22. issue that arrays and functions behave differently depending on
  23. whether I'm in interactive mode or if I'm running the script. For
  24. example, the following fragment works fine if I execute it
  25. interactively from kermit, but fails with "Array &f undefined" if I
  26. run it in the script:
  27.  
  28. define \%r \ffiles(*,&f)
  29. array copy &f &s
  30.  
  31. If I add something that dereferences the return code (\%r), it works
  32. in both places:
  33.  
  34. define \%r \ffiles(*,&f)
  35. echo Found \%r files
  36. array copy &f &s
  37.  
  38. There are a couple other things that seem to be working interactively
  39. but not from the script. I'm using c-kermit 8.0.206 on linux.
  40.  
  41. Thanks,
  42.  
  43. Derek
  44. dbecker@cpicorp.com
  45.